<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class SwtMerchant extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'swt_merchant';

    public function machines()
    {
        return $this
            ->belongsToMany(SwtMachine::class,'swt_merchant_machine','merchant_id','machine_id');
    }
}
